home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: swap high and low 16 bits?
- Date: Wed, 24 Jan 96 20:42:09 GMT
- Organization: none
- Message-ID: <822516129snz@genesis.demon.co.uk>
- References: <Pine.OSF.3.91.960115174921.19742A-100000@io.UWinnipeg.ca> <ALUN.CHAMPION.96Jan16110016@g7240065.bridge.bst.bls.com> <Pine.OSF.3.91.960117143539.1414A-100000@io.UWinnipeg.ca> <821927899snz@genesis.demon.co.uk> <4dpkde$h3n@ns.RezoNet.NET>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4dpkde$h3n@ns.RezoNet.NET> ray@ultimate-tech.com "Ray Dunn" writes:
-
- >>Just changing high order bits may not be a good idea since with some
- >>RNGs this won't filter down to the lower order bits. I suggest you use
- >>one of the expressions I posted earlier (which are incidentally
- >>simpler than a full swap).
- >
- >Now that I see the original poster was in fact using time to seed the
- >random number generator, I'm not quite sure what the problem is. The
- >closesness of one seed to another seed in no way implies that the two
- >random sequences so produced will be "close to" each other.
-
- Of course it depends on the actual RNG. However they may well be close
- over the first few values in each sequence.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-